public class Student extends Person implements Display{
    private String id;

    public Student(String name, Integer age, String sex) {
        super(name, age, sex);
        id = "1";
    }

    public void study(){
        System.out.println(id+"在学习");
    }

    @Override
    public void showInfo() {
        study();
    }
}
